import React from "react";
import PureComponent from "./PureComponent/PureComponent";
import MemoTest from "./Memo/Memo";
import UseCallbackTest from "./UseCallback/UseCallbackTest";
import UseMemoTest from "./UseMemo/UseMemoTest";
export default function performanceOptimization() {
  return (
    <div>
      <p> shouldComponentUpdate、PureComnent、类组件的优化方式</p>
      <p> React.memo、函数组件的优化方式</p>
      <p> useMemo、缓存计算值</p>
      <p>useCallback主要就是对函数进行缓存</p>
      <PureComponent></PureComponent>
      <MemoTest></MemoTest>
      <UseCallbackTest></UseCallbackTest>
      <UseMemoTest></UseMemoTest>
    </div>
  );
}
